package ${boPackage};

<#list table.importPackages as pkg>
    <#if !(pkg?string?starts_with("com.baomidou") || pkg?string?starts_with("com.vv.tools.common.support.BaseModel"))>
        import ${pkg};
    </#if>
</#list>

import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@RestController
@RequestMapping("/{module}/{entity}")
public class ${entity}Controller {

/**
* 列表查询
*/
@GetMapping("/list")
public Result list(@RequestParam Map
<String, Object> params){
//只有超级管理员，才能查看所有管理员列表
if(getUserId() != Constant.SUPER_ADMIN){
params.put("createUserId", getUserId());
}
PageUtils page = sysUserService.queryPage(params);

return R.ok().put("page", page);
}

}
